﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace UI
{
    public partial class LoadingForm : Form
    {
        const string dot = "...";

        const int max = 4;
        int start = 0;
        public LoadingForm()
        {
            InitializeComponent();
        }

        private void LoadingForm_Load(object sender, EventArgs e)
        {
            try
            {
                this.timer1.Enabled = true;
                this.timer1.Start();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                this.Close();
            }
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            try
            {
                if (start == max)
                {
                    this.label2.Text = "";
                    start = 0;
                }
                start++;
                this.label2.Text += dot;
            }
            catch (Exception)
            {

            }
          
        }
    }
}
